package org.example.seventeendemo;

public class Main {
    public static void main(String[] args) {
        Calculator calc = new Calculator();

        // 调用第一个add方法
        int sumInt = calc.add(5, 10);
        System.out.println("Sum of two integers: " + sumInt);

        // 调用第二个add方法
        int sumInts = calc.add(5, 10, 15);
        System.out.println("Sum of three integers: " + sumInts);

        // 调用第三个add方法
        double sumDouble = calc.add(5.0, 10.5);
        System.out.println("Sum of two doubles: " + sumDouble);

        // 调用第四个add方法
        double sumMixed = calc.add(5, 10.5);
        System.out.println("Sum of an integer and a double: " + sumMixed);
    }
}
